package com.ruoyi.project.hissystem.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class SysKeShi extends BaseEntity {
    @Excel(name = "科室序号", cellType = Excel.ColumnType.NUMERIC)
    private Long keshiid;
    @Excel(name = "科室名称", cellType = Excel.ColumnType.NUMERIC)
    private String keshiname;
    @Excel(name = "科室编号")
    private String keshicode;
    @Excel(name = "挂号量", cellType = Excel.ColumnType.NUMERIC)
    private Long no;
    @Excel(name = "负责人")
    private String ordername;
    @Excel(name = "电话号")
    private String phone;
    @Excel(name = "排序号", cellType = Excel.ColumnType.NUMERIC)
    private Long sortkey;
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public SysKeShi() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysKeShi sysKeShi = (SysKeShi) o;
        return Objects.equals(keshiid, sysKeShi.keshiid) &&
                Objects.equals(keshiname, sysKeShi.keshiname) &&
                Objects.equals(keshicode, sysKeShi.keshicode) &&
                Objects.equals(no, sysKeShi.no) &&
                Objects.equals(ordername, sysKeShi.ordername) &&
                Objects.equals(phone, sysKeShi.phone) &&
                Objects.equals(sortkey, sysKeShi.sortkey) &&
                Objects.equals(status, sysKeShi.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(keshiid, keshiname, keshicode, no, ordername, phone, sortkey, status);
    }

    @Override
    public String toString() {
        return "SysKeShi{" +
                "keshiid=" + keshiid +
                ", keshiname='" + keshiname + '\'' +
                ", keshicode='" + keshicode + '\'' +
                ", no=" + no +
                ", ordername='" + ordername + '\'' +
                ", phone='" + phone + '\'' +
                ", sortkey=" + sortkey +
                ", status='" + status + '\'' +
                '}';
    }

    public Long getKeshiid() {
        return keshiid;
    }

    public void setKeshiid(Long keshiid) {
        this.keshiid = keshiid;
    }

    public String getKeshiname() {
        return keshiname;
    }

    public void setKeshiname(String keshiname) {
        this.keshiname = keshiname;
    }

    public String getKeshicode() {
        return keshicode;
    }

    public void setKeshicode(String keshicode) {
        this.keshicode = keshicode;
    }

    public Long getNo() {
        return no;
    }

    public void setNo(Long no) {
        this.no = no;
    }

    public String getOrdername() {
        return ordername;
    }

    public void setOrdername(String ordername) {
        this.ordername = ordername;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getSortkey() {
        return sortkey;
    }

    public void setSortkey(Long sortkey) {
        this.sortkey = sortkey;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public SysKeShi(Long keshiid, String keshiname, String keshicode, Long no, String ordername, String phone, Long sortkey, String status) {
        this.keshiid = keshiid;
        this.keshiname = keshiname;
        this.keshicode = keshicode;
        this.no = no;
        this.ordername = ordername;
        this.phone = phone;
        this.sortkey = sortkey;
        this.status = status;
    }
}
